BEGIN;
CREATE TABLE `guestbook_message` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `content` longtext NOT NULL,
    `author` varchar(30) NOT NULL,
    `time` datetime NOT NULL,
    `parent_message_id` integer
)
;
ALTER TABLE `guestbook_message` ADD CONSTRAINT `parent_message_id_refs_id_47375349` FOREIGN KEY (`parent_message_id`) REFERENCES `guestbook_message` (`id`);
CREATE INDEX `guestbook_message_68b0ec6e` ON `guestbook_message` (`parent_message_id`);
COMMIT;
